<?php $section = 'Cart'; ?>
<?php include('inc/functions.php'); ?>
<?php include('Users/data.php'); ?>
<?php
	$totalCost = $_REQUEST['cost'];
	$user = $_REQUEST['id'];
	$orderList = $_REQUEST['games'];
	$userInfo = Get_User_Name($user);
	$userContact = GetContactInfo($user);
	$userShipping = GetShippingAdd($user);
	$userBilling = GetBillingAdd($user);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Core[nerd]-Home</title>
<link href="inc/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function warnToLogIn() {
	warning = "Missing Fields";
	alert(warning);
}
</script>

</head>

<body>
<div id="container">

<?php include('inc/nav.php'); ?>
<h1>Complete your Order!</h1>
<h2>This order is for...</h2>
<?php
	echo '<form method="post" action="orderConfirmation.php">
			<p>First Name: <input type="text" name="First_Name" value="'.$userInfo['FirstName'].'">   Last Name:<input type="text" name="Last_Name" value="'.$userInfo['LastName'].'"></p>
			<p>Email Address: <input type="text" name="Email" value="'.$userContact['Email'].'"></p>
		 ';
?>
<br><h2>and will be shipped to this address...</h2>
<?php
	echo '<p>Street: <input type="text" style="width:180px" name="Street_Name" value="'.$userShipping['Street'].'"></p>
		    <p>City: <input type="text" name="City_Name" value="'.$userShipping['City'].'">   State: <input type="text" name="State_Name" value="'.$userShipping['State'].'">
		       Zip Code: <input type="text" name="Zip_Code" value="'.$userShipping['ZipCode'].'"></p>
		  ';
?>
<br><h2>then will be billed to this address...</h2>
<?php
	echo '<p>Street: <input type="text" style="width:180px" name="bStreet_Name" value="'.$userBilling['Street'].'"></p>
		    <p>City: <input type="text" name="bCity_Name" value="'.$userBilling['City'].'">   State: <input type="text" name="bState_Name" value="'.$userBilling['State'].'">
		       Zip Code: <input type="text" name="bZip_Code" value="'.$userBilling['ZipCode'].'"></p>
		  ';
?>
<br><h2>using this credit card...</h2>
<?php
	echo '<p>Card Holder Name: <input type="text" style="width:180px" name="CCName"></p>
			<p>Credit Card Type: 
			<select name="CCType">
				<option>Visa</option>
				<option>MasterCard</option>
				<option>Discovery Card</option>
			</select> </p>
			<p>Credit Card Number: <input type="text" maxlength="19" name="CCNumber" style="width:180px"></p>
			<input type="submit" value="Complete Purchase">
		  </form>';
?>
</div>
</body>

</html>
